package com.hong.mvc.controller;

import com.hong.mvc.annotation.Controller;
import com.hong.mvc.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by wanghong
 * Date 2019-08-06 16:53
 * Description:
 */
@Controller
@RequestMapping("/study")
public class StudyController {

    public void login(HttpServletRequest request, HttpServletResponse response,String name,String password){
        System.out.println(name + ":" + password);
        try {
            response.getWriter().write("OK!");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
